package com.example.usermanagement.liuka.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.usermanagement.exception.ObjectNotException;
import com.example.usermanagement.exception.ServerErrorException;
import com.example.usermanagement.liuka.model.FlowPackageUser;
import com.example.usermanagement.vo.FlowPackageInfoVO;
import com.example.usermanagement.vo.FlowUserShopVO;
import org.apache.ibatis.annotations.Param;

/**
 * @author yha
 * @ClassName
 * @description:TODO
 * @date 2024年09月10日
 * @version: 1.0.0
 */
public interface FlowPackageUserService extends IService<FlowPackageUser> {


    /**
     * @功能描述: 订购套餐包
     * @param
     * @param packageId
     * @param flowUserId
     * @param phone
     * @return
     * @author yanghao
     * @since 17:02 2024/9/10
    **/
     void shopPackage(Long packageId,Long flowUserId,String phone) throws ServerErrorException;


     void stopFlowPackageUser(Long flowPackageUserId) throws ObjectNotException;


    IPage<FlowPackageInfoVO> selectByPage(Page page, String name, String packageName,
                                          String phone);

    FlowMessageService getMessage();
}
